<?php defined('SYSPATH') OR die('No direct access allowed.');

class Forum_Controller extends Template_Controller {
	const ALLOW_PRODUCTION = FALSE;
	public $template = 'layouts/template_forum';

	public function index(){
		$this->template->content = new View('forum/index');
		$this->template->content->forum_categories=ORM::factory("forum_category")->find_all();
		$this->template->title = '';
	}

	public function create(){
		$this->template->content = new View('forum/create');
		$this->template->content->forum_categories=ORM::factory("forum_category")->find_all();
		$this->template->title = '';
	}


	public function insertPost(){
		$this->template->content = new View('forum/index');
		$this->template->content->forum_categories=ORM::factory("forum_category")->find_all();
		$this->template->title = '';
	}
	
public function resultForumByCategory(){
		$this->template->content = new View('forum/index');
		$this->template->content->forum_categories=ORM::factory("forum_category")->find_all();
		$this->template->title = '';
	}

}
?>